package com.beemans.topon.ads2;

import androidx.annotation.NonNull;

public class BannerAdvertConfig {
    private final String placementId;           // 广告位 id
    private final float advertWHRatio;          // 广告视图宽高比例
    private boolean isReleaseOnAdClose = true;  // 是否在广告关闭时立即释放

    public BannerAdvertConfig(@NonNull String placementId, float advertWHRatio) {
        this.placementId = placementId;
        this.advertWHRatio = advertWHRatio;
    }

    public String getPlacementId() {
        return placementId;
    }

    public float getAdvertWHRatio() {
        return advertWHRatio;
    }

    public boolean isReleaseOnAdClose() {
        return isReleaseOnAdClose;
    }

    public void setReleaseOnAdClose(boolean releaseOnAdClose) {
        isReleaseOnAdClose = releaseOnAdClose;
    }
}
